﻿using DataCenter.IDataProvider;
using DataCenter.Service.Interfaces;

namespace DataCanter.VipProvider
{
    public class VipProvider : ICodeProvider
    {
        private readonly IProductService productservice;
        public VipProvider(IProductService productsvc)
        {
            productservice = productsvc;
        }
        public async Task<string> GetLasterCodeAsync(string customerId, string productId)
        {
            var product =await productservice.GetById(Guid.Parse(productId));
            return  product.Name+"laster";
        }

        public async Task<string> GetQRCodeAsync(string customerId, string productId)
        {
            var product = await productservice.GetById(Guid.Parse(productId));
            return product.Name+"QRCode";
        }
    }
}
